package at.hcmut.dev.mobile.barcamp;

import android.location.Location;

/**
 * This class define abstract methods that will be call back from
 * LocationService.
 * 
 * @author IHNEL
 * 
 */
public abstract class LocationResult {
	/**
	 * The action need to be done when location retrieving successful.
	 * 
	 * @param location
	 *            : the location got from Location provider.
	 */
	public abstract void OnAction(Location location);

	/**
	 * The action need to be done when location retrieving failed.
	 * 
	 * @param message
	 *            : the message should be shown to user.
	 */
	public abstract void OnFailed(String message);

	public abstract void OnUpdate(Location location);
}
